package com.liunian.subject.application.dto;

import com.liunian.subject.domain.entity.SubjectCategoryBO;
import com.liunian.subject.domain.entity.SubjectLabelBO;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import java.io.Serializable;

@Data
@ApiModel(value = "题目类别DTO")
public class SubjectLabelDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    private Long categoryId;
    /**
     * 标签名
     */
    private String labelName;
    /**
     * 排序顺序
     */
    private Long sortNum;

    public SubjectLabelBO subjectLabelDTOToBO() {
        SubjectLabelBO bo = new SubjectLabelBO();
        bo.setId(this.id);
        bo.setCategoryId(this.categoryId);
        bo.setLabelName(this.labelName);
        bo.setSortNum(this.sortNum);
        return bo;
    }

}
